window: Remove some outdated info from the docs
authorMatthias Clasen <mclasen@redhat.com>
Tue, 5 May 2020 16:00:15 +0000 (12:00 -0400)
committerMatthias Clasen <mclasen@redhat.com>
Wed, 6 May 2020 18:27:45 +0000 (14:27 -0400)
Remove references to ::size-allocate and ::configure-event
from the docs.

gtk/gtkwindow.c

index 19861e3ea597d4960ae43558b5217a08b86eb506..471fcc87388da10a9642b17d3582202934fad76b 100644 (file)
@@ -3953,11 +3953,6 @@ gtk_window_resize (GtkWindow *window,
  * stored across sessions; use gtk_window_set_default_size() to
  * restore them when before showing the window.
  *
- * To avoid potential race conditions, you should only call this
- * function in response to a size change notification, for instance
- * inside a handler for the #GtkWidget::size-allocate signal, or
- * inside a handler for the #GtkWidget::configure-event signal:
- *
  * |[<!-- language="C" -->
  * static void
  * on_size_allocate (GtkWidget *widget,
@@ -3972,12 +3967,6 @@ gtk_window_resize (GtkWindow *window,
  * }
  * ]|
  *
- * Note that, if you connect to the #GtkWidget::size-allocate signal,
- * you should not use the dimensions of the #GtkAllocation passed to
- * the signal handler, as the allocation may contain client side
- * decorations added by GTK+, depending on the windowing system in
- * use.
- *
  * If you are getting a window size in order to position the window
  * on the screen, you should, instead, simply set the window’s semantic
  * type with gtk_window_set_type_hint(), which allows the window manager